package com.baselib.android.cach.sql;

import java.util.List;
import java.util.Map;

/**
 * Created by Wesley on 14-1-26.
 */
public interface ImDbOpration {
    List<Map<String, String>> querySql(ImSqlRequest request);

    /**
     * 批量查询
     *
     * @param request sqlrequest集合
     * @return 结果集合
     */
    List<Map<String, String>> querySqls(ImSqlRequest[] request);


    int queryCount(String sql);

    boolean execSql(String request);

    boolean get(String request);

    <T> T get(String sql, Class t);

    <T> List<T> quary(String sql, Class t);

    long insert(ImInsertRequest request);

    boolean execSqls(String[] requests);

    boolean execSqls(List<ImSqlRequest> requests);


    String[][] querySqlNew(ImSqlRequest request);

    void close();

}
